import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import*
testCase20='DBshop019_删除属性流程'
firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu3(firefox,'商品管理','商品属性','属性')#进入属性
firefox.find_elements_by_link_text('删除')[0].click()#删除第一个 属性名为天天向上的
time.sleep(3)
try:
    firefox.find_element_by_xpath('//td[text()="天天向上"]')
    writeLog('%s 测试不通过'%testCase20)
    getPhoto(firefox)
except:
    writeLog('%s 测试通过' % testCase20)

firefox.quit()

